#! /bin/bash

set -e

# get the directory of the script
function get_script_dir() {
    local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
    echo "${script_dir}"
}
THIS_DIR=$(realpath "$(get_script_dir)")
source ${THIS_DIR}/envcheck.sh

cp ${NEOLIX_INSTALL_SCRIPT_DIR}/local_files/apollo_base.sh ${APOLLO_SCRIPTS_DIR}/apollo_base.sh
echo "neolix_tools/installation" >> ${APOLLO_ROOT_DIR}/.bazelignore
echo "done"
